package com.yllt4cloud.shangmi.biz.control;

import com.yllt4cloud.common.core.annotation.Inner;
import com.yllt4cloud.shangmi.api.entity.ShangTaiHuiZongXinXi;
import com.yllt4cloud.shangmi.biz.service.IHuaDanService;
import com.yllt4cloud.shangmi.biz.util.SystemConfigRedisUtil;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: yaoxj
 * @create: 2019-12-19 20:02
 **/
@RestController
@AllArgsConstructor
public class HuaDanAct {

    IHuaDanService huaDanService;
    SystemConfigRedisUtil systemConfigRedisUtil;
    @Inner
    @GetMapping("/huadan/shangtaihuizong")
    public ShangTaiHuiZongXinXi countShangTaiHuiZongXinXi() {
        String workdate=systemConfigRedisUtil.getWorkDateString();
        return huaDanService.countShangTaiHuiZongXinXi(workdate);
    }
}
